﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using FeiraGame_XNA.src.core;
using FeiraGame_XNA.src.core.gameobjects;

namespace FeiraGame_XNA.src.game.gameobject.tower
{
    public class BasicTower : Tower
    {
        public BasicTower(Vector2 Position) :
            base(Tools.Content.Load<Texture2D>("tower/basic"))
        {
            this.Position = Position;
        }

        private void controlOfAnimations()
        {
            this.animations = new List<Animation>();
            Animation attack = new Animation();
            Animation jump = new Animation();
            Animation idle = new Animation();
            Animation walk = new Animation();
            Animation damage = new Animation();
            idle.Frames = 1;
            idle.Fps = 8;
            idle.Y = 0;
            idle.Width = 75;
            idle.Height = 75;
            base.controlOfAnimations(attack, jump, walk, damage, idle);
        }

        public override void Initialize()
        {
            Scale = 1f;
            spriteColor = Color.White;
            Alpha = 0.1f;
            spriteColor = spriteColor * Alpha;
            this.Life = 100;
            this.Name = "Basic Tower";
            this.Description.Type = "Tower";
            this.Description.Text = " a Tower";
            this.Description.ScaleFont = 1.5f;
            this.Description.ScaleBG = new Vector2(1.5f, .5f);
            controlOfAnimations();
        }
    }
}
